




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：03/01/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfsyslog.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfsyslog.entity.YfSyslog;
import com.application.yfsyslog.struts.form.YfSyslogForm;
import com.application.yfsyslog.dao.YfSyslogDAO;
 /**
 * 
 * Description:YfSyslogService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 03/01/2012 
 * 
 */
public class YfSyslogService extends BaseService
{
	private YfSyslogDAO yfSyslogDAO;

	public YfSyslogDAO getYfSyslogDAO() {
		return this.yfSyslogDAO;
	}

	public void setYfSyslogDAO(YfSyslogDAO yfSyslogDAO) {
		this.yfSyslogDAO = yfSyslogDAO;
	}
        

        public YfSyslog getYfSyslog(YfSyslog yfSyslog) {
		return (YfSyslog) this.getBaseDao().queryByPk(yfSyslog, yfSyslog.getId());
	}
	
	public Integer getAllCountYfSyslog(YfSyslogForm yfSyslogForm){
		return this.yfSyslogDAO.getAllCountYfSyslog(yfSyslogForm);
	}
	
	public List<YfSyslog> searchYfSyslog(YfSyslogForm yfSyslogForm, PageBean pageBean) throws Exception {
		List<YfSyslog> yfSyslogList = (List) this.yfSyslogDAO.searchYfSyslog(yfSyslogForm, pageBean);
		return yfSyslogList;
	}
        
        public void deleteYfSyslogs(YfSyslogForm yfSyslogForm){
	   this.yfSyslogDAO.deleteYfSyslogs(yfSyslogForm);	 
	}
}
